package com.zhentao.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhentao.common.Result;
import com.zhentao.domain.SysScarify;
import com.zhentao.domain.dto.PageDto;
import com.zhentao.service.SysScarifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/scarify")
public class ScarifyController {
    @Autowired
    private SysScarifyService scarifyService;
    @PostMapping("/getScarifyList")
    public Result getScarifyList(@RequestBody PageDto pageDto){
        Page<SysScarify> scarifyList = scarifyService.getScarifyList(pageDto);
        return Result.build(scarifyList,200,"查询成功");
    }
}
